{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>商品详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">商品名称：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_name}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">类型：</label>
                            <div class="layui-input-block">
                                {if($goods.bg_type == 1)}
                                <input type="text" class="layui-input" value="花样青青" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="脖脸皮" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">产品码：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_product_code}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">缩略图：</label>
                            <div class="layui-input-block">
                                    <div class="layui-upload-list img-circle">
                                        <img class="layui-append-img" src="{$goods.bg_thumb}" onerror="this.src='/static/admin/images/no_img.jpg'">
                                    </div>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">商品图集</label>
                            <div class="layui-input-block">
                                {if count($goods.bg_images) > 0}
                                <div class="layui-upload-list img-circle">
                                    {volist name='goods.bg_images' id='vo'}
                                    <img class="layui-append-img" src="{$vo}">
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">一级分类：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.first_cate_name}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">二级分类：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.second_cate_name}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                {if($goods.bg_status == 1)}
                                <input type="text" class="layui-input" value="上架中" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="已下架" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">销量显示：</label>
                            <div class="layui-input-block">
                                {if($goods.bg_show_salenumber == 1)}
                                <input type="text" class="layui-input" value="显示" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="不显示" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">库存显示：</label>
                            <div class="layui-input-block">
                                {if($goods.bg_show_stock == 1)}
                                <input type="text" class="layui-input" value="显示" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="不显示" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">会员价格：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_price}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">原价：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_old_price}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">销量：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_sale_number}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">库存：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_stock}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">规格：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_spec}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">添加时间：</label>
                            <div class="layui-input-block">
                                <input type="text" disabled class="layui-input" value="{$goods.bg_time}">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">商品详情：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$goods.bg_content}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>
</body>
</html>